package com.xuecheng.manage_course.exception;

import com.xuecheng.framework.exception.CustomExceptionCatch;
import com.xuecheng.framework.model.response.CommonCode;
import org.springframework.security.access.AccessDeniedException;
import org.springframework.web.bind.annotation.ControllerAdvice;



/**
 * @Description: 自定义异常
 * @Param:
 * @return:
 * @Author: Mr.Yuan
 * @Date:
 */
@ControllerAdvice
public class CourseCustomException extends CustomExceptionCatch {
    static {
        builder.put(AccessDeniedException.class, CommonCode.UNAUTHORISE);
    }
}
